#ifndef ACTIONDESSINGRABTOLAUCH_H
#define ACTIONDESSINGRABTOLAUCH_H

#ifndef WX_PRECOMP
    #include <wx/wx.h>
#endif
#include "ActionDessin.h"
#include "ActionDessinGrab.h"

class Dessin;

class ActionDessinGrabToLauch : public ActionDessinGrab
{
    public:
        ActionDessinGrabToLauch();
        virtual void OnMousePressed(Dessin*,wxMouseEvent&);
        virtual void OnRelease(Dessin*,wxMouseEvent&);
        virtual void OnMotion(Dessin*,wxMouseEvent&);
        virtual void OnTimer(Dessin*,wxTimerEvent&);
        virtual void correctDimension(Dessin*);
        virtual void deplacer(Dessin*,long,long);

    protected:
        bool moving;
        long direction_x,direction_y;
        long point_depart_x,point_depart_y;
        long temps_ecoule_grab;
};

#endif // ACTIONDESSINGRABTOLAUCH_H
